home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILE_CHG / FDB.ZIP / FAUXDBUG.DOC < prev    next >
Encoding:
Text File  |  1992-07-06  |  15.0 KB  |  286 lines

  1.  
  2.                                    FAUXdBUG
  3.                                 Copyright 1992
  4.                                 by David Roper
  5.  
  6.                                Version: JULY '92
  7.  
  8.                 Offered as Shareware to friends and the public.
  9.                 This is NOT Public Domain, nor is it FreeWare.
  10.  
  11.                Shareware means that if you use it, you pay for it.
  12.          Shareware means that if you DON'T use it, you DON'T pay for it.
  13.  
  14.        Lighten up....I don't want you to WORRY about it.  I just want
  15.        you to know that I'm TRYING to make enough money to buy a bigger
  16.      hard drive.  If you CAN register, great, but PLEASE ENJOY FDB anyway.
  17.  
  18. Q - How do you pronouce FAUXdBUG?
  19. A - Like this: FOE DEE BUG ... (Faux means False, like Faux Pearls, etc.)
  20.  
  21. Q - What does it do?
  22. A - It allows a non-programmer to make changes inside an EXE or a COM file
  23.     without a lot of effort.  You can change HEX values as well as
  24.     plain old simple words and strings.  Actually, you can change any
  25.     ASCII values to any other ASCII values in ANY file.  If you need to
  26.     change the SIZE of the words in a TEXT file, use CUTZIT.EXE instead,
  27.     another program by me.  You can find a free copy on Compuserve.
  28.  
  29.     Here's an idea for you.  Get your FORMAT.EXE program, search for a "?",
  30.     question mark, change it to a BELL [07].  When the formatting is over
  31.     and you are asked "Do you want to format another?", it will BEEP so
  32.     you will know it's FINISHED if you're doing something else at the time.
  33.  
  34.     "Explain FAUXdBUG, please.  What does it do?"
  35.  
  36.     FAUXdBUG, abbreviated here as FDB, allows you to change X bytes to
  37.     X other bytes.  That's 3 bytes to 3 bytes, 20 bytes to 20 bytes, etc.
  38.     It will not allow you to change 3 bytes to 2 bytes, etc.  It won't.
  39.     It was designed to work in EXE and COM files which don't lend themselves
  40.     to decreasing and augmenting their size without re-compiling.
  41.  
  42.     DEBUG (from DOS) has a 64K limit.  FDB doesn't have a limit!  
  43.     FDB is not as flexible as PC TOOLS or NORTON UTILITIES, but it's
  44.     easy to use and at $10, FDB is affordable for you to own and use.
  45.     (FAUXdBUG is NOT endorsed by Central Point Software or Peter Norton.)
  46.  
  47.     Everything is Menu Driven.  Easy to use by reading this DOC just once.
  48.     When you crank it up, FDB will ask you for the source file, that's
  49.     the one you're changing.  Then it asks you for the name of the file
  50.     that you will be producing which will contain the new, changed bytes.
  51.     If you don't really want to Create a file (maybe you're browsing...)
  52.     then enter the word NUL for the new filename to be created.  A  NUL
  53.     device (like in DOS) will throw away output; no file will be created.
  54.     Also, if you press ENTER without a filename, NUL will be provided.
  55.  
  56.     At no time will the original file be in danger.  AND, if the filename
  57.     you select for the new file is accidentally already in use, you can't
  58.     accidentally "stomp" on top of it....FDB will quit to let you figure
  59.     out what is going on.  Safety was the priority in this FDB design.
  60.  
  61.  
  62. page 2 FDB
  63.  
  64.     Next, you tell FDB the "word" to find and then you tell FDB what "word"
  65.     to change it to.  For instance, change DECEMBER to NOVEMBER.  They are
  66.     both 8 bytes long, so it's okay.  If you want to change APRIL to " MAY " 
  67.     be sure to add two spaces because APRIL is 5 characters and MAY is only 3.  See the quotes?  
  68.     They will be removed by FDB, so that " MAY " is five characters too.  
  69.     See the extra 2 spaces with MAY?  Use quotes anytime you need to have 
  70.     spaces on the left or right side of a word.
  71.  
  72.     If you want to change an 'exotic' HEX string like 1B 42 01 to 00 00 1B,
  73.     you can very easily.  Of course, you can't enter a null character
  74.     from the keyboard so you enter the hex values as two digit values
  75.     inside a pair of square brackets.  Here goes:  [1B4201]  No spaces!
  76.     The brackets will be stripped and the 3 HEX pairs will be formed
  77.     into 3 ASCII characters.  Two null characters and an ESC look like this:
  78.     [00001B]   The word 'BABY' would be [42414259], '6.75' is [362E3735]
  79.  
  80.     This could be handy to change OLD Printer codes in EXE files.
  81.     This could be handy to change a VERSION NUMBER without re-compiling.
  82.     This could be handy changing all CAL state abbreviations in a .DBF file
  83.     from CAL (for California) to CA like this: Find CAL  replace with "CA "
  84.     You could look for a string like in DOS' DEBUG, then come back later
  85.     after you have seen ALL YOU NEED TO SEE and change it.  See NUL above.
  86.     You can mix and match HEX entry and "normal words" (aka a string).
  87.  
  88.     Example: Find UP2       replace with [455833]
  89.     Example: Find [555032]  replace with EX3
  90.     Example: Find [555032]  replace with [455833]
  91.     Example: Find UP2       replace with EX3
  92.     These 4 examples above are are the same thing, said four ways.
  93.     (Hex 55 is decimal 85 which is the UPPER CASE letter "U", etc.)
  94.  
  95.     Example: Find "RW "     replace with [707567]
  96.     Example: Find [525720]  replace with pug
  97.     Example: Find [525720]  replace with [707567]
  98.     Example: Find "RW "     replace with pug
  99.     These 4 examples above are are the same thing, said four ways.
  100.     These examples use "quotes" because I needed to specify a SPACE
  101.     character after the W, and you can't do that without using the quotes.
  102.  
  103.     You could take a TEXT file with CRLF combinations  (you know, 0D0A)
  104.     and change all [0D0A] to [2020] spaces.  Wow, what a long string!
  105.  
  106.     Remember, the source file is never touched!   ....and
  107.     FDB will ask you what to do EACH time it finds a pattern-match.
  108.  
  109.     A pattern-match will be known as a HIT when you see it on the screen.
  110.     Small, little arrows will point to the HIT in question, showing both
  111.     the HEX value and the CHARACTER (If it can be printed on the screen.)
  112.     If a character cannot be printed, you will see ".." instead.
  113.     You will be given the chance to say Yes...change it, or No....don't.
  114.  
  115.     In fact, there are 5 answers to select: Y, N, S, D, and Quit.
  116.     YES will get the change done only at that point, at the HIT showing.
  117.     NO is the default (ie, press enter, get NO).  No change will be done.
  118.     SKIP will just skip through the file, counting.  No changes will be done.
  119.     DoAll (DO ALL) will go ahead and Do All occurences without
  120.          asking each time....puts it on "Autopilot."  You can STOP the
  121.          DoALL mode by tapping the Space Bar once.  A small beep happens.
  122.     Quit (or ESCape) will quit.  No new file will be made, either.
  123.  
  124.  
  125. page 3, FDB
  126.  
  127.     Once, I saw a program that would allow you to change COMMAND.COM
  128.     of your DOS so that the DIR inside it would be "dir".  In that way
  129.     the uppercase DIR would never be found and you could have a DIR.EXE 
  130.     or DIR.COM or DIR.BAT file in your path that would run instead. 
  131.  
  132.     If you see fancy HEX patterns in a book, use FDB to see if it's in
  133.     the file you have, or wherever, and then use FDB to change the values
  134.     using the square brackets [##xx##xx] to hold the HEX values ## and xx.
  135.     I hope you will find FDB easier to use than DOS DEBUG.  It's safer....
  136.  
  137.     If you use FDB a lot and you want to help me write new programs like
  138.     this, please register.  I will send you instructions on how to get rid
  139.     of the SHAREWARE screen for your registration fee.  It's only $10.
  140.     You'll feel good.... I'll be happy.  I'm saving for a SCSI Hard Drive.
  141.     Print the file named FDB.REG (filled out) and aattach a check for $10.
  142.     If you don't want to print the file, heck, just send me your
  143.     name address and a check for $10.  I'll figure it out, you bet.
  144.     Please tell me what diskette to use, 3.5 or 5.25 -- or you'll get 3.5.
  145.  
  146.     You'll be on my mailing list for future developments on all new
  147.     utilities and programs of mine.  I've been at this address for
  148.     over eight years.  I'm not moving any time soon.
  149.  
  150.     You'll get a notice for a free upgrade.  I'll send you a postcard.
  151.     You can send me a formatted diskette, SASE mailer, and postage or...
  152.     if you don't want to bother with all that packaging, send me a check
  153.     for $3 ... that's all.  I guess it depends upon how busy you are.
  154.     (You're paying for postage, diskette, mailer, and lunch if I have to
  155.     format diskettes and stand in line to buy postage, etc.)
  156.  
  157.     If you are a software developer, I'll make you a SPECIAL VERSION
  158.     for YOUR SHAREWARE PROGRAM and sell you the rights to send it to
  159.     everybody with your shareware (like FDB.)  You won't have to write it
  160.     and I'll get my hard drive even faster.  I'll send you HOW TO USE it.
  161.     Including my secrets on how I did this one, so you can use this
  162.     Developer version to the best use without having to "think" a lot.
  163.     I'll send you the instructions for Registering the personal
  164.     version, too.  So.... you'll get two programs to use, one to
  165.     send out, and one to keep for your own personal use.  The two
  166.     programs will be FDB.EXE and FDB-TOOL.EXE.  See the FDB-TOOL.REG file.
  167.  
  168.     The $10 registration is for personal use of FDB only and you "cannot"
  169.     (read that as Should Not) send it out as a tool to use.  Please
  170.     help me at the $25 level for the TOOL version.  See the file in
  171.     this package called FDB-TOOL.REG for instructions.  Thanks.
  172.  
  173.     If you are a corporation, I will send you a SITE LICENSE to use
  174.     FDB for $25 and the instructions to "register" it.  Yes, I take PO's.
  175.     A site license is good for any building "known" as part of the
  176.     address to which I'll send the instructions, 1 building or 50 of them.
  177.     See the file named FDB-SITE.REG for a form to fill out and send to me.
  178.  
  179.     Individuals should personally register at $10, and corporations at
  180.     $25 which includes a personal registration along with the SITE license.
  181. 4
  182.  
  183. page 4, FDB
  184.  
  185.     If you are in State Government or Federal government, I will send 
  186.     you a site license for $25 and how to register it easily. A site 
  187.     license is good for any building "known" as part of the address to 
  188.     which I'll send the instructions, one building or 50 of them. That's 
  189.     1 computer to 1000+  computers.  Quite a bargain (?)   Yes, I take 
  190.     PO's.  See the file FDB-SITE.REG for a form to fill out and send to 
  191.     me.  Looks a lot like the above, don't you think? 
  192.  
  193.     Sorry, I cannot do business with STATE government of NC.  Write me
  194.     ON YOUR LETTERHEAD and we'll figure out what to do.  You suggest.
  195.  
  196.     If you have suggestions and you're registered, I'll listen.
  197.     If you have suggestions and you're NOT registered, I'll listen.
  198.     If you want to write me and you expect (desire) a response, then
  199.     please enclose a Self Addressed, Stamped Envelope for reply.
  200.  
  201.     The above DOC file and prices are good until April 30, 1993.
  202.  
  203.     The free upgrades are good for life when you send in a diskette,
  204.     mailer, and return postage....IF YOU'RE REGISTERED.
  205.                                                             David
  206.  
  207.     P.S. It may happen (as Murphy likes to say) that a string, or text,
  208.          or words, which you are searching for, will fall "across" the
  209.          end of one buffer and into the next buffer.  FDB is written to
  210.          grab a buffer of 4096 bytes at a time which makes it so fast.
  211.          However, a word like "DIAMOND" MAY fall across the END of one
  212.          buffer and INTO the next buffer.  So that one buffer contains
  213.          only "DIA" and the next buffer contains the "MOND" part.  If you
  214.          want to make 'very' sure "DIAMOND" is not in a file, you can
  215.          change the BUFFER size from the command line and try looking
  216.          for "DIAMOND" again (use SKIP).  To change the BUFFER size from
  217.          4096 bytes to another size, put "/BUFFER" on the command line
  218.          with the desired Buffer size after it.  The allowed Range is 1
  219.          to 32767 bytes.  Note that "/BUFFER" is not "/ BUFFER".
  220.          If you CAN'T FIND a string using the default 4096 bytes, then
  221.          try to use 4096 * 1.5 = 6144 bytes and then again at 4096
  222.          divided by 1.5 = 2731 bytes.  That should cover them.  You
  223.          math majors will quickly see that 2731 * 1.5 = 4096.5 instead.
  224.          You'll be reminded if you use the /BUFFER size option.
  225.  
  226.          Example: a buffer size of 5200 bytes would look like this:
  227.          A:\>FDB  /BUFFER  5200  BYTES
  228.  
  229.          Example: a buffer size of 6666 bytes would look like this:
  230.          A:\>FDB  /BUFFER  6666  BYTES
  231.  
  232.          (you don't need the word BYTES, but it helps to read better,
  233.           therefore, you could have typed only: FDB  /BUFFER  6666 )
  234.  
  235.          Warning:  I don't think DIET, LZEXE and other "shrinkers" should
  236.          be used on FDB.  Always keep a copy safe for yourself, before
  237.          you squeeeze EXE files with these programs.  Try it at your
  238.          own risk.  It will work or it will not, it's that simple.
  239.                        ---------------eof---------------
  240.  
  241.  
  242.          ----------------end-of-author's-documentation---------------
  243.  
  244.                          Software Library Information:
  245.  
  246.                     This disk copy provided as a service of
  247.  
  248.                            Public (software) Library
  249.  
  250.          We are not the authors of this program, nor are we associated
  251.          with the author in any way other than as a distributor of the
  252.          program in accordance with the author's terms of distribution.
  253.  
  254.          Please direct shareware payments and specific questions about
  255.          this program to the author of the program, whose name appears
  256.          elsewhere in  this documentation. If you have trouble getting
  257.          in touch with the author,  we will do whatever we can to help
  258.          you with your questions. All programs have been tested and do
  259.          run.  To report problems,  please use the form that is in the
  260.          file PROBLEM.DOC on many of our disks or in other written for-
  261.          mat with screen printouts, if possible.  PsL cannot debug pro-
  262.          programs over the telephone, though we can answer questions.
  263.  
  264.          Disks in the PsL are updated  monthly,  so if you did not get
  265.          this disk directly from the PsL, you should be aware that the
  266.          files in this set may no longer be the current versions. Also,
  267.          if you got this disk from another vendor and are having prob-
  268.          lems,  be aware that  some files may have become corrupted or
  269.          lost by that vendor. Get a current, working disk from PsL.
  270.  
  271.          For a copy of the latest monthly software library newsletter
  272.          and a list of the 4,000+ disks in the library, call or write
  273.  
  274.                            Public (software) Library
  275.                                P.O.Box 35705 - F
  276.                             Houston, TX 77235-5705
  277.  
  278.                                 1-800-2424-PSL
  279.                              MC/Visa/AmEx/Discover
  280.  
  281.                           Outside of U.S. or in Texas
  282.                           or for general information,
  283.                               Call 1-713-524-6394
  284.  
  285.  
  286.